import { Injectable } from '@angular/core';

@Injectable()
export class AuthorService {
  isAuthorized: boolean;
  constructor() {
     console.log('author service init ')
     this.isAuthorized = Math.random() > 0.5 ? true: false;
  }
  getIsAuthorized() {
        return this.isAuthorized;
  }
}
